import 'package:flutter/material.dart';
import 'package:flutter_app/routes/Routes.dart';

import '../Tabs.dart';

class RegisterThirdPage extends StatefulWidget {
  RegisterThirdPage({Key key}) : super(key: key);

  @override
  _RegisterThirdPageState createState() => _RegisterThirdPageState();
}

class _RegisterThirdPageState extends State<RegisterThirdPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("注册完成"),
      ),
      body: Center(
        child: Column(
          children: <Widget>[
            SizedBox(height: 40),
            Text("这是注册完成页面"),
            RaisedButton(
              child: Text("完成"),
              onPressed: () {
                Navigator.of(context).pushAndRemoveUntil(
                    new MaterialPageRoute(
                        builder: (context) => new Tabs(index: 2)),
                    (routes) => routes == null);
              },
            )
          ],
        ),
      ),
    );
  }
}
